package com.cgx.service;

import com.cgx.entity.message.Message;
import com.cgx.vo.websocket.MessageVo;
import com.cgx.vo.ResultVo;

import java.util.List;
import java.util.Map;

public interface MessageService {

    Map<String, ResultVo> sendMessageToUser(MessageVo messageVo);

    Map<String, ResultVo> saveAll(List<Message> messageList);

    List<Message> getMessageBySessionId(String sessionId);

    Map<String, ResultVo> saveMessage(List<MessageVo> messageList);
}
